@if(isset($item['children']))

    <li class="layui-nav-item {{ active_class(if_uri(Admin::childrenUris($item['children'])), 'layui-nav-itemed') }}">
        <a href="javascript:;">{!! fa_icon($item['icon']) !!} {{ $item['title'] }}</a>
        <dl class="layui-nav-child">
            @foreach($item['children'] as $i)
                @include('admin.partials.menu', ['item' => $i])
            @endforeach
        </dl>
    </li>
@else
    <li class="layui-nav-item {{ active_class(if_uri(trim(Admin::path($item['uri']), '/')), 'layui-this') }}">
        <a href="{{ Admin::path($item['uri']) }}"
        >{!! fa_icon($item['icon']) !!} {{ $item['title'] }}</a>
    </li>
@endif
